﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" xmlns:local="clr-namespace:Tunlr" x:Class="SettingsView"
    Title="Tunlr.Sync" Height="500" Width="400" WindowStyle="SingleBorderWindow" ResizeMode="NoResize" Icon="/Tunlr;component/Glimpse icon x128.ico">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="52"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <Border Grid.Row="0" Style="{StaticResource ToolBar}">
            <Grid>

                <DockPanel Margin="35,3" HorizontalAlignment="Center">

                    <ToggleButton x:Name="TglButtonNIC" IsChecked="{Binding  RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}, Path=NIC}" Style="{StaticResource ToolBar_ToggleButton}" ToolTip="Network Adapter" Width="80" Checked="TglButtonNIC_Checked_1" Unchecked="TglButtonSettings_Checked_1" >
                        <DockPanel>


                            <Path Data="M40.240109,47.294002C39.441779,47.294001 38.787999,47.960467 38.787998,48.7806 38.787999,49.600735 39.441779,50.266 40.240109,50.265999 41.044909,50.266 41.695999,49.600735 41.696,48.7806 41.695999,47.960467 41.044909,47.294001 40.240109,47.294002z M30.552198,47.047002C31.755343,47.047003 32.723998,48.021003 32.723999,49.218801 32.723998,50.422002 31.755343,51.392002 30.552198,51.392002 29.354454,51.392002 28.377999,50.422002 28.377999,49.218801 28.377999,48.021003 29.354454,47.047003 30.552198,47.047002z M22.601849,47.047002C23.802221,47.047003 24.770998,48.021003 24.770998,49.218801 24.770998,50.422002 23.802221,51.392002 22.601849,51.392002 21.401176,51.392002 20.429999,50.422002 20.429999,49.218801 20.429999,48.021003 21.401176,47.047003 22.601849,47.047002z M14.651199,47.047002C15.849144,47.047003 16.822998,48.021003 16.822998,49.218801 16.822998,50.422002 15.849144,51.392002 14.651199,51.392001 13.450853,51.392002 12.476999,50.422002 12.476999,49.218801 12.476999,48.021003 13.450853,47.047003 14.651199,47.047002z M37.475598,45.24L62.548788,45.24C63.284393,45.240002,63.881998,45.836558,63.881998,46.573528L63.881998,51.175573C63.881998,51.912545,63.284393,52.509002,62.548788,52.509002L37.475598,52.509002C36.737316,52.509002,36.140999,51.912545,36.140999,51.175573L36.140999,46.573528C36.140999,45.836558,36.737316,45.240002,37.475598,45.24z M14.6509,39.366002C15.848679,39.366003 16.82,40.33589 16.82,41.536351 16.82,42.736712 15.848679,43.708 14.6509,43.708 13.45072,43.708 12.476999,42.736712 12.476999,41.536351 12.476999,40.33589 13.45072,39.366003 14.6509,39.366002z M14.6509,31.411002C15.848679,31.411002 16.82,32.383758 16.82,33.584551 16.82,34.783943 15.848679,35.757999 14.6509,35.757999 13.45072,35.757999 12.476999,34.783943 12.476999,33.584551 12.476999,32.383758 13.45072,31.411002 14.6509,31.411002z M39.605688,26.771566C39.147433,26.771566,38.77768,27.137413,38.777679,27.591867L38.777679,39.810536C38.77768,40.261031,39.147433,40.629427,39.605688,40.629427L60.238867,40.629427C60.690573,40.629427,61.064375,40.261031,61.064375,39.810536L61.064375,27.591867C61.064375,27.137413,60.690573,26.771566,60.238867,26.771566z M38.305015,24.390001L61.378279,24.390001C62.483688,24.390001,63.381998,25.284523,63.381998,26.391319L63.381998,40.900324C63.381998,42.004412,62.483688,42.899003,61.378279,42.899003L38.305015,42.899003C37.198195,42.899003,36.304999,42.004412,36.304999,40.900324L36.304999,26.391319C36.304999,25.284523,37.198195,24.390001,38.305015,24.390001z M23.640848,22.903999C22.836122,22.903999 22.185,23.570465 22.185,24.3906 22.185,25.210735 22.836122,25.876001 23.640848,25.876001 24.440275,25.876001 25.093998,25.210735 25.093998,24.3906 25.093998,23.570465 24.440275,22.903999 23.640848,22.903999z M1.3332901,20.850002L26.405716,20.850002C27.142708,20.850002,27.738998,21.446293,27.738998,22.183382L27.738998,26.784719C27.738998,27.521811,27.142708,28.118002,26.405716,28.118002L1.3332901,28.118002C0.596241,28.118002,0,27.521811,0,26.784719L0,22.183382C0,21.446293,0.596241,20.850002,1.3332901,20.850002z M3.6430817,2.3814697C3.1899605,2.3814697,2.8174629,2.7473106,2.8174629,3.2016602L2.8174629,15.420502C2.8174629,15.871,3.1899605,16.2395,3.6430817,16.2395L24.275548,16.2395C24.733841,16.2395,25.103736,15.871,25.103736,15.420502L25.103736,3.2016602C25.103736,2.7473106,24.733841,2.3814697,24.275548,2.3814697z M2.5024681,0L25.575029,0C26.681812,0,27.575,0.89453125,27.575,2.0013428L27.575,16.510401C27.575,17.6145,26.681812,18.509001,25.575029,18.509001L2.5024681,18.509001C1.398304,18.509001,0.5,17.6145,0.5,16.510401L0.5,2.0013428C0.5,0.89453125,1.398304,0,2.5024681,0z" Stretch="Uniform" Fill="#FF000000" Width="16" Height="16" Margin="0,0,5,0" RenderTransformOrigin="0.5,0.5">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <TransformGroup.Children>
                                            <RotateTransform Angle="0" />
                                            <ScaleTransform ScaleX="1" ScaleY="1" />
                                        </TransformGroup.Children>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>

                            <TextBlock Text="Network Adapter" Foreground="{StaticResource Font_Brush_Black}" TextWrapping="Wrap"/>
                        </DockPanel>
                    </ToggleButton>

                    <ToggleButton x:Name="TglButtonSettings" IsChecked="{Binding  RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}, Path=Settings}" Style="{StaticResource ToolBar_ToggleButton}" ToolTip="Settings" Width="80" Checked="TglButtonSettings_Checked_1" Unchecked="TglButtonAbout_Checked_2">
                        <VirtualizingStackPanel Orientation="Horizontal">

                            <Path Data="F1M-515.802,331.242C-515.789,329.857,-515.923,328.495,-516.128,327.172L-510.578,322.745C-512.008,317.424,-514.756,312.655,-518.482,308.812L-525.111,311.322C-527.209,309.586,-529.594,308.195,-532.179,307.198L-533.233,300.195C-535.788,299.515 -538.464,299.107 -541.237,299.086 -544.006,299.07 -546.686,299.44 -549.259,300.088L-550.396,307.078C-552.989,308.052,-555.398,309.403,-557.514,311.117L-564.117,308.526C-567.886,312.318,-570.696,317.047,-572.198,322.354L-566.702,326.846C-566.924,328.172 -567.071,329.531 -567.083,330.919 -567.093,332.318 -566.962,333.672 -566.752,335.005L-572.311,339.427C-570.872,344.742,-568.124,349.518,-564.398,353.354L-557.769,350.851C-555.674,352.581,-553.284,353.971,-550.698,354.976L-549.656,361.976C-547.092,362.659 -544.416,363.065 -541.647,363.086 -538.875,363.096 -536.198,362.729 -533.63,362.086L-532.482,355.088C-529.891,354.114,-527.484,352.763,-525.362,351.062L-518.771,353.651C-514.998,349.851,-512.192,345.12,-510.687,339.82L-516.182,335.333C-515.959,333.997,-515.814,332.643,-515.802,331.242z M-541.53,344.336C-548.84,344.292 -554.737,338.318 -554.689,331 -554.641,323.68 -548.673,317.784 -541.354,317.833 -534.035,317.88 -528.139,323.851 -528.187,331.172 -528.235,338.495 -534.205,344.385 -541.53,344.336z" Stretch="Uniform" Fill="#FF000000" Width="16" Height="16" Margin="0,0,5,0" RenderTransformOrigin="0.5,0.5">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <TransformGroup.Children>
                                            <RotateTransform Angle="0" />
                                            <ScaleTransform ScaleX="1" ScaleY="1" />
                                        </TransformGroup.Children>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            
                            <TextBlock Text="Settings" Foreground="{StaticResource Font_Brush_Black}"/>
                            
                        </VirtualizingStackPanel>
                        
                    </ToggleButton>

                    <ToggleButton x:Name="TglButtonAbout" IsChecked="{Binding  RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}, Path=About}" Style="{StaticResource ToolBar_ToggleButton}" ToolTip="About" Width="80" Checked="TglButtonAbout_Checked_2" Unchecked="TglButtonNIC_Checked_1">
                        <TextBlock Text="About" Foreground="{StaticResource Font_Brush_Black}"/>
                    </ToggleButton>




                </DockPanel>

            </Grid>
        </Border>




        <local:AboutView Grid.Row="1" Visibility="{Binding IsChecked, ElementName=TglButtonAbout,Converter={StaticResource BoolToVisiblity}}"/>
        <local:NICView Grid.Row="1" Visibility="{Binding IsChecked, ElementName=TglButtonNIC,Converter={StaticResource BoolToVisiblity}}"/>
        <Border Grid.Row="1" Style="{StaticResource MainContent_Background}" Visibility="{Binding IsChecked, ElementName=TglButtonSettings,Converter={StaticResource BoolToVisiblity}}">
            <xctk:PropertyGrid SelectedObject="{Binding }" Background="Transparent" ShowSearchBox="False" ShowSortOptions="False" ShowSummary="False" BorderBrush="LightGray" BorderThickness="0,1,0,0"/>
        </Border>
        
        <local:StatusBarView Grid.Row="2"/>
    </Grid>
</Window>
